﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserSystem/Employee/Shop.master" AutoEventWireup="true" CodeFile="Request.aspx.cs" Inherits="Request" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content  ID="Content2"  runat="server"  contentplaceholderid="ContentPlaceHolder2">
    <div  class="Content">
        <h1>Create Request</h1>
        <div style="width: 100%; margin-top: 10px; float: left;">
            &nbsp;Item -
            <asp:DropDownList ID="ddlItem" runat="server">
            </asp:DropDownList> 
            &nbsp Quantity - <asp:TextBox ID="txbQuantity" runat="server" Width="94px"></asp:TextBox>&nbsp<asp:Button ID="btnAdd" runat="server" Text="Add" onclick="btnAdd_Click" />
            <br /><br /><hr width=100%>
        </div>
        <div style="margin-top: 80px; text-align:left;">
            <asp:GridView ID="gvListItem" runat="server" Width="571px" DataKeyNames="Detail_ID" onrowcommand="gvListItem_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="lbDelete" CommandArgument='<%#Eval("Detail_ID") %>' CommandName="Delete" runat="server">
                                Delete
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Button ID="btnDone" runat="server" Text="Done" onclick="btnDone_Click" 
                Width="47px" />
            <br />
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txbQuantity" ErrorMessage="- Add Quantity"></asp:RequiredFieldValidator>
        &nbsp;<br />
            <asp:Label ID="lblCountItem" runat="server" ForeColor="Red"></asp:Label>
        </div>
    </div>
    
    
</asp:Content>

